package Mapper;

import bean.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserMapper {
    @Insert("insert into users(name,password,age) value(#{name},#{password},#{age})")
    void insertUser(User user);
    @Delete("delete from users where name=#{name}")
    void DeleteUser(User user);
    @Select("select name,password,age from users")
    void SelectUser(User user);
    @Update("update users set age=#{age}, password=#{password} where name=#{name}")
    void UpdateUser(User user);
}

